class ArticlesController < ApplicationController
	def articles
		@articles = Article.where("publish_status = 1")
		render "articles"
	end
	def article
		id = params[:id]
		@article = Article.where("id = ?",id).first
		render "article"
	end
	
end
